﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class FileTool
{
    public static void ErrorRecord(string Content,string filePath)
    {
        using (StreamWriter sw = new StreamWriter(filePath, true))
        {
            sw.WriteLine(Content);
        }
    }

    public static void CreateDirectory(string filepath)
    {
        if (!File.Exists(filepath))
        {
            Directory.CreateDirectory(filepath);
        }
    }
}
